/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package qrlogin.test;

import java.io.Serializable;

/**
 *
 * @author adee
 */
public class User implements Serializable {
    
    private boolean logined;
    private String password = "12345";
    private String name = "adee";



    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }


 
    public String getPassword() {
        return password;
    }


    
    public void setPassword(String password) {
        this.password = password;
    }


    public User(){
        this.logined=false;
    }

    public boolean isLogined() {
        return this.logined;
    }



    public void setLogined(boolean status){
        this.logined=status;
    }



  
   public void loginMe(String pass, String user){
       if (this.password.equals(pass)&& this.name.equals(user)) this.setLogined(true);
       else this.setLogined(false);
   }
    
}
